//
// Created by Jisam on 2024/8/9 22:48.
// solve P1024 一元三次方程求解
#include <bits/stdc++.h>

using namespace std;
double a, b, c, d;

double f(double x) {
    return a * x * x * x + b * x * x + c * x + d;
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cin >> a >> b >> c >> d;
    cout << fixed << setprecision(2);
    int cnt = 0;
    for (int i = -100; i < 100; i++) {
        double l = i;
        double r = i + 1;
        double x1 = f(l);
        double x2 = f(r);
        if (!x1) {
            cout << l << " ";
            cnt++;
        }

        if (x1 * x2 < 0) {
            while ((r - l) >= 0.001) {
                double m = (l + r) / 2;
                if (f(m) * f(r) <= 0) {
                    l = m;
                } else {
                    r = m;
                }
            }
            cout << r << " ";
            cnt++;
        }

        if (cnt == 3) break;
    }
    return 0;
}